package com.hxzy.mapper;

import com.hxzy.pojo.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zl
 * @create 2020-10-28 9:38
 */
public interface BookMapper {
    List<Book> selectAll();
    int addBook(Book book);
    int deleteBook(Integer id);
    Book selectBookById(Integer id);
    int updateBook(Book book);
    List<Book> getBooksByPrice(@Param("min") Double min, @Param("max") Double max);


}
